package com.summer.bilibili.controller.business;

import com.summer.bilibili.controller.BaseController;
import com.summer.bilibili.dto.DanmuImportDto;
import com.summer.bilibili.service.VideoDanmuService;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @classname DanmuAdminController
 * @description 描述
 * @date 2025/9/1 21:51
 * @author: summer
 */
@RestController
@RequestMapping("/admin/video/danmu")
@RequiredArgsConstructor
public class DanmuAdminController extends BaseController {
    private final VideoDanmuService videoDanmuService;

    @PostMapping("/import")
    public String importDanmus( @RequestBody @Validated DanmuImportDto dto ) {
        return videoDanmuService.importBatch(dto);
    }
}
